import request from '@/utils/request'

// academies search 学院搜索
export function getAcademyList(data) {
  return request({
    url: '/academies/search',
    method: 'post',
    data
  })
}

// academies add 学院新增
export function addAcademy(data) {
  return request({
    url: '/academies/add',
    method: 'post',
    data
  })
}

// academies delete 学院删除
export function deleteAcademy(params) {
  return request({
    url: '/academies/delete',
    method: 'post',
    params
  })
}

// academies update 学院更新
export function updateAcademy(data) {
  return request({
    url: '/academies/update',
    method: 'post',
    data
  })
}

// 获取所有学院
export function getAllAcademy() {
  return request({
    url: '/academies/get',
    method: 'get'
  })
}

